   <?php
   
	require_once "config/constantes.php";
	require_once "config/config.php";
	   
 	$cod = $_POST['cod'];
	$opt = '<option>Selecione...</option>';
	$objRecorSet = $objConn->Execute('SELECT * FROM tbl_area_profissional  where co_categoria_profissional = '. $cod .' order by no_area_profissional asc' );	
	if ( $objRecorSet->_numOfRows > 0 ){	
		while( !$objRecorSet->EOF ) {
            $opt .= "<option value='".$objRecorSet->fields['co_area_profissional']."'>".$objRecorSet->fields['no_area_profissional']."</option>";
			$objRecorSet->MoveNext();
		}
 
     }
 
 	echo $opt;
    ?>  